/*
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *如果数据库字段发生变化，请在代码生器重新生成此Model
 */
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using VOL.Entity.SystemModels;

namespace VOL.Entity.DomainModels
{
    [Entity(TableCnName = "商品信息",TableName = "goods_info")]
[Table("goods_info")]
    public partial class GoodsInfo:BaseEntity
    {
        /// <summary>
       ///修改时间
       /// </summary>
       [Display(Name ="修改时间")]
       [Column(TypeName="datetime")]
       [Editable(true)]
       public DateTime? modified_time { get; set; }

       /// <summary>
       ///商品ID
       /// </summary>
       [Key]
       [Display(Name ="商品ID")]
       [Column(TypeName="bigint")]
       [Required(AllowEmptyStrings=false)]
       public long goods_id { get; set; }

       /// <summary>
       ///商品编码
       /// </summary>
       [Display(Name ="商品编码")]
       [MaxLength(255)]
       [Column(TypeName="nvarchar(255)")]
       public string goods_core { get; set; }

       /// <summary>
       ///商品名称
       /// </summary>
       [Display(Name ="商品名称")]
       [MaxLength(255)]
       [Column(TypeName="nvarchar(255)")]
       public string goods_name { get; set; }

       /// <summary>
       ///是否主推荐商品：0.非推荐1.推荐
       /// </summary>
       [Display(Name ="是否主推荐商品：0.非推荐1.推荐")]
       [Column(TypeName="int")]
       [Required(AllowEmptyStrings=false)]
       public int is_master { get; set; }

       /// <summary>
       ///国条码
       /// </summary>
       [Display(Name ="国条码")]
       [MaxLength(255)]
       [Column(TypeName="nvarchar(255)")]
       public string bar_code { get; set; }

       /// <summary>
       ///品牌表的ID
       /// </summary>
       [Display(Name ="品牌表的ID")]
       [Column(TypeName="bigint")]
       public long? brand_id { get; set; }

       /// <summary>
       ///一级分类ID
       /// </summary>
       [Display(Name ="一级分类ID")]
       [Column(TypeName="bigint")]
       [Required(AllowEmptyStrings=false)]
       public long category_id { get; set; }

       /// <summary>
       ///商品的供应商ID
       /// </summary>
       [Display(Name ="商品的供应商ID")]
       [Column(TypeName="bigint")]
       public long? shop_id { get; set; }

       /// <summary>
       ///商品销售价格
       /// </summary>
       [Display(Name ="商品销售价格")]
       [DisplayFormat(DataFormatString="10,2")]
       [Column(TypeName="decimal")]
       public decimal? price { get; set; }

       /// <summary>
       ///上下架状态：0下架1上架
       /// </summary>
       [Display(Name ="上下架状态：0下架1上架")]
       [Column(TypeName="int")]
       [Required(AllowEmptyStrings=false)]
       public int publish_status { get; set; }

       /// <summary>
       ///审核状态：0未审核，1已审核
       /// </summary>
       [Display(Name ="审核状态：0未审核，1已审核")]
       [Column(TypeName="int")]
       public int? audit_status { get; set; }

       /// <summary>
       ///商品重量
       /// </summary>
       [Display(Name ="商品重量")]
       [Column(TypeName="decimal")]
       public decimal? weight { get; set; }

       /// <summary>
       ///商品长度
       /// </summary>
       [Display(Name ="商品长度")]
       [Column(TypeName="decimal")]
       [Required(AllowEmptyStrings=false)]
       public decimal length { get; set; }

       /// <summary>
       ///商品高度
       /// </summary>
       [Display(Name ="商品高度")]
       [Column(TypeName="decimal")]
       public decimal? height { get; set; }

       /// <summary>
       ///商品宽度
       /// </summary>
       [Display(Name ="商品宽度")]
       [Column(TypeName="decimal")]
       public decimal? width { get; set; }

       /// <summary>
       ///生产日期
       /// </summary>
       [Display(Name ="生产日期")]
       [Column(TypeName="datetime")]
       public DateTime? production_date { get; set; }

       /// <summary>
       ///描述
       /// </summary>
       [Display(Name ="描述")]
       [Column(TypeName="nvarchar(max)")]
       public string description { get; set; }

       /// <summary>
       ///录入时间
       /// </summary>
       [Display(Name ="录入时间")]
       [Column(TypeName="datetime")]
       public DateTime? indatetime { get; set; }

       /// <summary>
       ///商品类别；1租车2新车3二手车
       /// </summary>
       [Display(Name ="商品类别；1租车2新车3二手车")]
       [Column(TypeName="int")]
       [Required(AllowEmptyStrings=false)]
       public int goods_type { get; set; }

       /// <summary>
       ///购买次数
       /// </summary>
       [Display(Name ="购买次数")]
       [Column(TypeName="int")]
       [Required(AllowEmptyStrings=false)]
       public int goods_buyCount { get; set; }

       /// <summary>
       ///商品详情
       /// </summary>
       [Display(Name ="商品详情")]
       [Column(TypeName="nvarchar(max)")]
       public string goods_intro { get; set; }

       /// <summary>
       ///商品简介
       /// </summary>
       [Display(Name ="商品简介")]
       [Column(TypeName="nvarchar(max)")]
       public string goods_brief { get; set; }

       /// <summary>
       ///商品缩略图
       /// </summary>
       [Display(Name ="商品缩略图")]
       [Column(TypeName="nvarchar(max)")]
       public string goods_image { get; set; }

       /// <summary>
       ///商品图集
       /// </summary>
       [Display(Name ="商品图集")]
       [Column(TypeName="nvarchar(max)")]
       public string goods_images { get; set; }

       /// <summary>
       ///商品型号
       /// </summary>
       [Display(Name ="商品型号")]
       [MaxLength(255)]
       [Column(TypeName="nvarchar(255)")]
       public string goods_model { get; set; }

       /// <summary>
       ///单位(1件)
       /// </summary>
       [Display(Name ="单位(1件)")]
       [Column(TypeName="int")]
       public int? unit { get; set; }

       /// <summary>
       ///排序
       /// </summary>
       [Display(Name ="排序")]
       [Column(TypeName="int")]
       [Required(AllowEmptyStrings=false)]
       public int sort { get; set; }

       
    }
}